package com.jd.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.jd.mapper.CategoryMapper;
import com.jd.pojo.Category;
import com.jd.service.CategoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class CategoryServiceImpl implements CategoryService {

    @Autowired
    private CategoryMapper categoryMapper;

    /*查询所有分类信息*/
    @Override
    public List<Category> selectAll() {
        List<Category> categoryList = categoryMapper.selectList(new QueryWrapper<Category>());
        return categoryList;
    }
}
